<%@ page language="java" contentType="text/html; charset=utf-8"	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="strutsTags"%>
<html>
	<head>
		<script type="text/javascript" src="../resource/js/configuration/configExamin.js"></script>
	</head>
<body>
<div class="wrapper">
	<div class="tipdiv">
		<p>1. 缺省经理和HR可以代人提交请假加班申请，并可在审批时修改申请；缺省HR允许执行销假和加班确认操作</p>
		<p>2. 每月考勤数据汇总开始日期限制：如果选择上月，只允许16日-28日；如果是本月，只允许1日-15日；缺省为本月1日</p>
		<p>3. 必须开放刷卡功能，才可以进行排班管理、刷卡管理、考勤机同步等操作</p>
		<p>4. 考勤计算方式可以按小时（或按天）统计，缺省一天等于8小时，结果影响每日考勤记录、每月考勤汇总</p>
		<p>5. 考勤请假模式为混合模式时，免排班员工、默认班次员工按天请假；排班员工按小时请假</p>
	</div>
	<div class="contentdiv">
		<form id="examinForm" action="examinUpdateConfig.action" method="post">
			<s:token />
			<p>
				创建非本人请假加班记录:
				<s:hidden id="sys_examin_create_level" name="sys_examin_create_level" ></s:hidden>
                <s:if test="sys_examin_create_level==0">
					<input type="radio" class="radio" id="submitSub" name="submitSub" onclick="changeSelectSub()" value="1"></input>允许
					<input type="radio" class="radio" id="submitSub" name="submitSub" onclick="changeSelectSub()" value="0" checked="checked"></input>禁止
				</s:if>
				<s:else>
					<input type="radio" class="radio" id="submitSub" name="submitSub" onclick="changeSelectSub()" value="1" checked="checked"></input>允许
					<input type="radio" class="radio" id="submitSub" name="submitSub" onclick="changeSelectSub()" value="0"></input>禁止
				</s:else>
			</p>
			<p>
				审批时修改请假加班记录:
				<s:hidden id="sys_examin_update_level" name="sys_examin_update_level"></s:hidden>
                <s:if test="sys_examin_update_level==0">
				    <input type="radio" class="radio" id="sys_examin_update_levelRadio" name="sys_examin_update_levelRadio" onClick="changeUpdateLevelRadio()" value="1"></input>允许
				    <input type="radio" class="radio" id="sys_examin_update_levelRadio" name="sys_examin_update_levelRadio" onClick="changeUpdateLevelRadio()" value="0" checked="checked"></input>禁止
				</s:if>
				<s:else>
				    <input type="radio" class="radio" id="sys_examin_update_levelRadio" name="sys_examin_update_levelRadio" onClick="changeUpdateLevelRadio()" value="1" checked="checked"></input>允许
				    <input type="radio" class="radio" id="sys_examin_update_levelRadio" name="sys_examin_update_levelRadio" onClick="changeUpdateLevelRadio()" value="0"></input>禁止
				</s:else>
			</p>
			<p>
				请假是否允许HR销假:
				<s:hidden id="sys_examin_lr_confirm" name="sys_examin_lr_confirm"></s:hidden>
		        <s:if test="sys_examin_lr_confirm==0">
		            <input type="radio" class="radio" id="sys_examin_lr_confirmRadio" name="sys_examin_lr_confirmRadio" onClick="changeLrConfirmRadio()" value="0" checked="checked"/>不允许
		            <input type="radio" class="radio" id="sys_examin_lr_confirmRadio" name="sys_examin_lr_confirmRadio" onClick="changeLrConfirmRadio()" value="1" />允许
		        </s:if>
		        <s:else>
		            <input type="radio" class="radio" id="sys_examin_lr_confirmRadio" name="sys_examin_lr_confirmRadio" onClick="changeLrConfirmRadio()" value="0" />不允许
		            <input type="radio" class="radio" id="sys_examin_lr_confirmRadio" name="sys_examin_lr_confirmRadio" onClick="changeLrConfirmRadio()" value="1" checked="checked"/>允许
		        </s:else>
			</p>
			<p>
				加班是否允许HR确认:
				<s:hidden id="sys_examin_ot_confirm" name="sys_examin_ot_confirm"></s:hidden>
		        <s:if test="sys_examin_ot_confirm==0">
		            <input type="radio" class="radio" id="sys_examin_ot_confirmRadio" name="sys_examin_ot_confirmRadio" onClick="changeOtConfirmRadio()" value="0" checked="checked"/>不允许
		            <input type="radio" class="radio" id="sys_examin_ot_confirmRadio" name="sys_examin_ot_confirmRadio" onClick="changeOtConfirmRadio()" value="1" />允许
		        </s:if>
		        <s:else>
		            <input type="radio" class="radio" id="sys_examin_ot_confirmRadio" name="sys_examin_ot_confirmRadio" onClick="changeOtConfirmRadio()" value="0" />不允许
		            <input type="radio" class="radio" id="sys_examin_ot_confirmRadio" name="sys_examin_ot_confirmRadio" onClick="changeOtConfirmRadio()" value="1" checked="checked"/>允许
		        </s:else>
			</p>
			<p>
				排班信息导入是否覆盖:
		        <s:hidden id="sys_examin_shiftimport_override" name="sys_examin_shiftimport_override"></s:hidden>
		        <s:if test="sys_examin_shiftimport_override==0">
		            <input type="radio" class="radio"  name="shiftImportOpen" onClick="changeShiftImportRadio()" value="0" checked="checked"/>否
		            <input type="radio" class="radio"  name="shiftImportOpen" onClick="changeShiftImportRadio()" value="1" />是
		        </s:if>
		        <s:else>
		            <input type="radio" class="radio"  name="shiftImportOpen" onClick="changeShiftImportRadio()" value="0" />否
		            <input type="radio" class="radio"  name="shiftImportOpen" onClick="changeShiftImportRadio()" value="1" checked="checked"/>是
		        </s:else>
			</p>
			<p>
				每月考勤汇总起始日期:
			    <s:select name="beginMonth" list="#{1:'本月',0:'上月'}" id="beginMonth"></s:select>
			    <s:textfield id="beginDay" maxlength="2" size="3" name="beginDay" onkeyup="value=value.replace(/\D/g,'')" ></s:textfield>日
			</p>
			<p>
				是否开放刷卡功能:
		        <s:hidden id="sys_examin_shift_enable" name="sys_examin_shift_enable"></s:hidden>
		        <s:if test="sys_examin_shift_enable==0">
		            <input type="radio" class="radio"  name="shiftOpen" onClick="changeShiftRadio()" value="0" checked="checked" />不开放
		            <input type="radio" class="radio"  name="shiftOpen" onClick="changeShiftRadio()" value="1" />开放
		        </s:if>
		        <s:else>
		            <input type="radio" class="radio"  name="shiftOpen" onClick="changeShiftRadio()" value="0" />不开放
		            <input type="radio" class="radio"  name="shiftOpen" onClick="changeShiftRadio()" value="1" checked="checked" />开放
		        </s:else>
			</p>
			<p>
				考勤请假模式:<s:select id="sys_examin_leave_type" name="sys_examin_leave_type" list="#{'0':'混合模式','1':'按小时','2':'按天'}" emptyOption="false"></s:select>
			</p>
			<p>
				加班自动转调休:
				<s:hidden id="sys_examin_ot_tiaoxiu" name="sys_examin_ot_tiaoxiu"></s:hidden>
				<s:if test="sys_examin_ot_tiaoxiu == 0">
					<input type="radio" class="radio" name="sys_examin_ot_tiaoxiuRadio" onClick="changeOtTiaoxiu()" value="0" checked="checked" />否
		            <input type="radio" class="radio" name="sys_examin_ot_tiaoxiuRadio" onClick="changeOtTiaoxiu()" value="1" />是
				</s:if>
				<s:if test="sys_examin_ot_tiaoxiu == 1">
					<input type="radio" class="radio" name="sys_examin_ot_tiaoxiuRadio" onClick="changeOtTiaoxiu()" value="0" />否
		            <input type="radio" class="radio" name="sys_examin_ot_tiaoxiuRadio" onClick="changeOtTiaoxiu()" value="1" checked="checked" />是
				</s:if>
			</p>
			<p>
				调休匹配规则:
				<s:hidden id="sys_examin_tiaoxiu_match" name="sys_examin_tiaoxiu_match"></s:hidden>
				<s:if test="sys_examin_tiaoxiu_match == 0">
					<input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="0" checked="checked" />系统默认匹配
		            <input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="1" />假日优先匹配
		            <input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="2" />月份/假日优先匹配
				</s:if>
				<s:if test="sys_examin_tiaoxiu_match == 1">
					<input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="0" />系统默认匹配
		            <input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="1" checked="checked" />假日优先匹配
		            <input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="2" />月份/假日优先匹配
				</s:if>
				<s:if test="sys_examin_tiaoxiu_match == 2">
					<input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="0" />系统默认匹配
		            <input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="1"/>假日优先匹配
		            <input type="radio" class="radio" name="sys_examin_tiaoxiu_matchRadio" onClick="changeTiaoxiuMatch()" value="2" checked="checked" />月份/假日优先匹配
				</s:if>
			</p>
			<p>
				加班刷卡匹配规则:
				<s:hidden id="sys_examin_ot_match" name="sys_examin_ot_match"></s:hidden>
				<s:if test="sys_examin_ot_match == 0">
					<input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="0" checked="checked" />按加班申请时间
		            <input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="1" />按实际刷卡时间
		            <input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="2" />两者取较小值
				</s:if>
				<s:if test="sys_examin_ot_match == 1">
					<input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="0" />按加班申请时间
		            <input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="1" checked="checked" />按实际刷卡时间
		            <input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="2" />两者取较小值
				</s:if>
				<s:if test="sys_examin_ot_match == 2">
					<input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="0" />按加班申请时间
		            <input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="1" />按实际刷卡时间
		            <input type="radio" class="radio" name="sys_examin_ot_matchRadio" onClick="changeOtMatch()" value="2" checked="checked" />两者取较小值
				</s:if>
			</p>
			<p>
				<br>
			    <input id="updateExaminBt" class="button" type="button" onclick="updateExaminConfirm();" value="更新" />
			</p>
		</form>
	</div>
</div>
</body>
</html>
				
			

